package com.huazhi.wzsnw.exception;

public enum ErrorCode {

    NULL_OBJ("LUO001", "对象为空"),
    ERROR_ADD("LUO002", "添加失败"),
    ERROR_UPDATE("LUO003", "修改失败"),
    ERROR_DEL("LUO004", "删除失败"),
    ERROR_AU("LUO005", "授权失败"),

    ERROR_SYSTEM_ROUTE("LUO999", "系统异常");


    private String value;
    private String desc;

    private ErrorCode(String value, String desc) {
        this.setValue(value);
        this.setDesc(desc);
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    @Override
    public String toString() {
        return "[" + this.value + "]" + this.desc;
    }
}
